package com.example.demo.model;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 马拉圈
 * Date: 2023-08-07
 * Time: 2:02
 */

@ConfigurationProperties("mine")
@Component
public class Student {
    private String name;
    private int id;
    private float score;
    private boolean is_bro;

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", id=" + id +
                ", score=" + score +
                ", isBro=" + is_bro +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public boolean isIs_bro() {
        return is_bro;
    }

    public void setIs_bro(boolean is_bro) {
        this.is_bro = is_bro;
    }
}
